import request from '@/utils/request'
// 获取部门负责人数据
export const getManagerList = () => {
  return request({
    url: '/sys/user/simple'
  })
}

// 获取列表数据
export const getEmployeeList = (params) => {
  return request({
    url: '/sys/user',
    params
  })
}

// 添加员工
export const addEmployee = (data) => {
  return request({
    url: '/sys/user',
    method: 'POST',
    data
  })
}

// 删除接口
export const delEmployee = (id) => {
  return request({
    url: `/sys/user/${id}`,
    method: 'DELETE'
  })
}

// 批量引入员工
export const batchEmployee = (data) => {
  return request({
    url: '/sys/user/batch',
    method: 'POST',
    data
  })
}

// 保存用户信息
export const saveUserDetailById = (data) => {
  return request({
    url: `/sys/user/${data.id}`,
    method: 'PUT',
    data
  })
}
